package controleur;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import application.Consts;

import modele.CKModel;
import vue.VueEditeurCK;

public class ControleReset implements ActionListener {
	
	VueEditeurCK _vue;
	
	public ControleReset(VueEditeurCK vue){
		_vue = vue;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		
		// This is only for apple and will not harm the other
		System.setProperty("apple.laf.useScreenMenuBar", "true");
		System.setProperty("com.apple.mrj.application.apple.menu.about.name", Consts.APP_NAME);

		CKModel<String, String> modele = new CKModel<String, String>();
		VueEditeurCK vue = new VueEditeurCK(modele);
		vue.dessiner();
		_vue.getEditorFrame().dispose();
		
	}

}
